﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class RushEliteBossButtonRedPointCtrl : MonoBehaviour
    {
        public GameObject redPoint;

        void Update()
        {
            if (gameObject.activeInHierarchy)
            {
                if (StaticData.IsRushBossChallengeTipShow() && !redPoint.activeSelf)
                {
                    redPoint.SetActive(true);
                }
                else if (!StaticData.IsRushBossChallengeTipShow() && redPoint.activeSelf)
                { 
                    redPoint.SetActive(false);
                }
            }
        }
    }
}